﻿using SandAbp.Openiddict.Localization;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Localization;

namespace SandAbp.Openiddict.Permissions;

public class OpeniddictPermissionDefinitionProvider : PermissionDefinitionProvider
{
    public override void Define(IPermissionDefinitionContext context)
    {
        var myGroup = context.AddGroup(OpeniddictPermissions.GroupName, L("Permission:Openiddict"));
    }

    private static LocalizableString L(string name)
    {
        return LocalizableString.Create<OpeniddictResource>(name);
    }
}
